<div class="page_description">
    {text key="skeleton+description_access_level"}
</div>

<div>
    <div style="margin-bottom: 10px;">
    {text key='skeleton+access_level_adding_authorization_action'}
    </div>

    <div class="ow_std_margin code_reference">
    <pre>
    $authorization = OW::getAuthorization();

    $authorization->addGroup('skeleton');

    $authorization->addAction('skeleton', 'some_action');</pre>
    </div>

    <div style="margin-bottom: 10px;">
    {text key='skeleton+checking_if_user_is_authorized'}
    </div>

    <div class="ow_std_margin code_reference">
    <pre>
    if ( OW::getUser()->isAuthorized('skeleton', 'some_action') )
    {
        //show some content
    }
    else
    {
        throw new Redirect404Exception();
    }</pre>
    </div>

    <div style="margin-bottom: 10px;">
    {text key='skeleton+checking_if_user_is_a_moderator'}
    </div>

    <div class="ow_std_margin code_reference">
    <pre>
    if ( OW::getUser()->isAuthorized('skeleton') )
    {
        //show some other content
    }</pre>
    </div>

</div>
